package com.cy.store.mapper;

import com.cy.store.entity.Address;
import com.cy.store.entity.User;

import java.util.Date;
import java.util.List;

//@Mapper
public interface AddressMapper {

    public Integer insert(Address address);

    public Integer countByUid(Integer uid);

    public List<Address> findByUid(Integer uid);

    public Address findByAid(Integer aid);

    public Integer updateIsDefaultByUid(Integer uid);

    public Integer updateIsDefaultByAid(Integer aid,String modifiedUser,Date modifiedTime);

    public Integer deleteByAid(Integer aid);

    public Address findByUidOrderByTime(Integer uid);
}
